package Service;

import Dao.CourseDao;
import Pojo.Course;
//import Pojo.SelectCoure;
import Pojo.Student;
import dto.StudentCourse;

import java.util.List;

public class Courseimply implements CourseService{
    CourseDao courseDao=new Dao.Courseimply();

    @Override
    public List<Course> queryCourseTable() {
        return courseDao.selectCourseTable();
    }

    @Override
    public Course selectOne(Integer id) {
        return  courseDao.selectByno(id);
    }

    @Override
    public void add(StudentCourse course) {
        courseDao.add(course);
    }

    @Override
    public List<Course> queryStudentCourseTable(Integer id) {
       return courseDao.selectStudentCourseTable(id);
    }
}
